<?php defined('BASEPATH') OR die('No direct access allowed.');
/**
 * Description of "Clients_model"
 *
 * Created on Jan 27, 2011
 * @author Ramon Gutierrez
 * @copyright Bitstop Network Services Inc.
 * @version 0.1
 */

class Clients_model extends Model {
	public function Clients_model() {
        parent::Model();
		$this->CI =& get_instance();
    }
	
	// Get all details about a client
	public function getClientInfo($id) {
		$query = $this->db->select('a.*, c.*')->where("a.id = c.account_id AND c.id = $id")->get('accounts a, clients c');
		if($query->num_rows > 0) {
			$row = $query->row_array();
			return $row;
		} else {
			return false;
		}
	}
}

/* End of file clients_model.php */
/* Location: ./system/application/models/clients_model.php */